package packutil;

public class ThreadUtil {

	public static void sleep(long millis) {
		try {
			Thread.sleep(millis);
		} catch (InterruptedException e) {
			throw new RuntimeException(e);
		}
	}

	public static void wait(Object waitObj, long timeout) {
		try {
			synchronized (waitObj) {
				waitObj.wait(timeout);
			}
		} catch (InterruptedException e) {
			throw new RuntimeException(e);
		}
	}
}
